using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ESoft.Core.Data;
using ESoft.Core.Data.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ESoft.Portal.Data.Domain.Entity
{
    /// <summary>
    /// UOrgAds
    /// </summary>    
	[Table("u_org_ads")]
    public partial class UOrgAdsEntity : BaseModel
    {
		/// <summary>
        /// 
        /// </summary>
		[Key] 
		[Column("ADS_ID")]
        public string AdsId { get; set; }
		/// <summary>
        /// 店铺标识
        /// </summary> 
		[Column("ORG_ID")]
        public string OrgId { get; set; }
		/// <summary>
        /// 广告图标识
        /// </summary> 
		[Column("IMAGE_ID")]
        public string ImageId { get; set; }
		/// <summary>
        /// 广告商品标识
        /// </summary> 
		[Column("PRODUCT_ID")]
        public string ProductId { get; set; }
		/// <summary>
        /// 排序
        /// </summary> 
		[Column("SORT")]
        public int? Sort { get; set; }
		/// <summary>
        /// 创建时间
        /// </summary> 
		[Column("CREATE_DATETIME")]
        public DateTime? CreateDatetime { get; set; }
		/// <summary>
        /// 操作时间
        /// </summary> 
		[Column("OPER_DATETIME")]
        public DateTime? OperDatetime { get; set; }
		/// <summary>
        /// 操作人标识
        /// </summary> 
		[Column("OPER_USER_ID")]
        public string OperUserId { get; set; }
		/// <summary>
        /// 创建人标识
        /// </summary> 
		[Column("CREATE_USER_ID")]
        public string CreateUserId { get; set; }
		/// <summary>
        /// 备注
        /// </summary> 
		[Column("REMARK")]
        public string Remark { get; set; }
    }

		public class UOrgAdsConfiguration : EntityMappingConfiguration<UOrgAdsEntity>
    {
        public override void Map(EntityTypeBuilder<UOrgAdsEntity> b)
        {
        }
    }
}

